<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="com.onlineauction.helpers.Constants"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Unsubscribe</title>
<link rel="stylesheet"
	href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="style.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script src="timepicker_addon.js"></script>
</head>

<%
    String username = (String) session.getAttribute(Constants.USERNAME);
    if (username == null) {    	
        response.sendRedirect("/Home");
    }    
%>


<body>
    <%
        String message = (String)request.getAttribute(Constants.MESSAGE);
        if (message != null && message.length() != 0) {
        	out.println(message);
        }
    %>
	<div class="wrapper">
		<div id="Content">
			<div id="Header">
				<H1>Unsubscribe</H1>
				<div id="LogOutButtonDiv" align="left">
					<a href="/Home">Home</a> <a href="LogoutAccount">Logout</a>
				</div>
			</div>
			<hr />
			<h3>WARNING! THIS ACTION CANNOT BE UNDONE!</h3>
			<h4>If you are sure you want to unsubscribe, please enter your password:</h4>
			<div id="MainContent">
				<form action="Unsubscribe" method="post">
					<table>
						<tr>
							<td align="right">Password:</td>
							<td align="left"><input type="password"
								name=<%=Constants.PASSWORD%> /></td>
							<td><input type="submit" value="Unsubscribe" /></td>
						</tr>						
					</table>
				</form>				
			</div>
			<!-- end MainContent -->
		</div>
		<!-- end Content -->
	</div>
	<!-- end wrapper -->


</body>
</html>